<template>
  <el-dialog
    :destroy-on-close="false"
    :show-close="false"
    v-model="dialogVisible"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    align-center
    width="621"
  >
    <div class="aboutus">
      <img class="close" @click="close" src="~/assets/img/close.png" alt="" />
      <div class="title">
        热门领取干货 | 精挑细选！带你解锁AI时代下的最新技能
      </div>
      <div class="sub-title">火什么看这里，行业风向标</div>
      <div class="content-box">
        <div class="left">
          <div class="top">
            <img class="logo" src="~@/assets/img/bbx.png" alt="" />
            <div class="right-box">
              <div class="title">犀牛粉丝福利官</div>
              <div class="desc">
                AI时代下，创作环境巨变，创造者觉醒，为你精心准备行业福利，打造属于你的超级个体。
              </div>
            </div>
          </div>
          <div class="box">
            <div class="box-item">
              <div class="cicle">1</div>
              <div class="name">热门流行的AIGC工具素材资料包</div>
            </div>
            <div class="box-item">
              <div class="cicle">2</div>
              <div class="name">精挑细选的免费可商用字体包</div>
            </div>
            <div class="box-item">
              <div class="cicle">3</div>
              <div class="name">每日更新AI提示词，上手即用</div>
            </div>
          </div>
        </div>
        <div class="right ml10">
          <div class="name">犀牛官方福利官</div>
          <img class="img" src="~@/assets/img/qrcode.jpg" alt="" />
          <div class="text">微信扫码领取</div>
        </div>
      </div>
      <div class="footer">犀牛百宝箱·用AI赋能全域电商</div>
    </div>
  </el-dialog>
</template>

<script setup>
const dialogVisible = ref(false);
const close = () => {
  dialogVisible.value = false;
};
const show = () => {
  dialogVisible.value = true;
};
defineExpose({
  close,
  show
})
</script>

<style lang="scss" scoped>
.aboutus {
  background: linear-gradient(180deg,#32c7aa, #ffffff 100%);
  border-radius: 10px;
  padding: 20px 20px 10px 20px;
  position: relative;
  .title {
    width: 100%;
    height: 28px;
    font-size: 20px;
    font-weight: 400;
    text-align: LEFT;
    color: #ffffff;
    line-height: 23px;
    margin-bottom: 6px;
    text-align: center;
  }
  .sub-title {
    width: 100%;
    height: 18px;
    font-size: 13px;
    font-weight: 500;
    text-align: LEFT;
    color: #ffffff;
    line-height: 15px;
    text-align: center;
  }
  .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  .content-box {
    margin: 20px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    .left {
      width: 399px;
      background: #ffffff;
      border-radius: 10px;
      padding: 16px 22px 16px 20px;
      .top {
        padding-bottom: 16px;
        border-bottom: 1px solid #f2f2f2;
        display: flex;
        .logo {
          width: 36px;
          height: 36px;
        }
        .right-box {
          .title {
            height: 25px;
            font-size: 18px;
            font-weight: 400;
            text-align: LEFT;
            color: #32C7AA;
            line-height: 21px;
            margin-top: 8px;
          }
          .desc {
            height: 36px;
            font-size: 13px;
            font-weight: 400;
            text-align: LEFT;
            color: #888888;
            line-height: 15px;
            margin-top: 10px;
          }
        }
      }
      .box {
        margin-top: 16px;
        .box-item {
          display: flex;
          align-items: center;
          margin-bottom: 10px;
          .cicle {
            width: 20px;
            height: 20px;
            background: #32C7AA;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-family: DIN, DIN-700;
            font-weight: 700;
            text-align: LEFT;
            color: #ffffff;
            margin-right: 8px;
          }
          .name {
            font-size: 16px;
            font-family: PingFang SC, PingFang SC-400;
            font-weight: 400;
            text-align: LEFT;
            color: #333333;
          }
        }
      }
    }
    .right {
      width: 172px;
      height: 236px;
      background: #ffffff;
      border-radius: 10px;
      padding: 0 22px 0 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      .name {
        margin-top: 16px;
        height: 22px;
        font-size: 16px;
        font-weight: 400;
        text-align: LEFT;
        color: #32C7AA;
        line-height: 19px;
      }
      .img {
        width: 132px;
        height: 132px;
        margin: 10px 0;
        background: #ccc;
      }
      .text {
        height: 18px;
        font-size: 13px;
        font-weight: 500;
        text-align: LEFT;
        color: #748595;
        line-height: 15px;
      }
    }
  }
  .footer {
    width: 100%;
    height: 18px;
    font-size: 13px;
    font-weight: 500;
    text-align: LEFT;
    color: #6d8499;
    line-height: 15px;
    text-align: center;
  }
}
</style>
<style>
.el-dialog__header {
  padding: 0 !important;
  margin: 0 !important;
}
.el-dialog__body {
  padding: 0 !important;
}
.el-dialog {
  background-color: transparent !important;
  border: none !important;
}
</style>
